{extend name="base:base" /}
{block name="seo"}
<!--/meta 作为公共模版分离出去-->
<title>分类管理-WavLink 新版 后台</title>
{/block}
{block name="nav"}
<nav class="breadcrumb" style="background-color:#fff;padding: 0 24px">
    首页
    <span class="c-gray en">/</span>
    文章管理
    <span class="c-gray en">/</span>
    分类管理
    <span class="c-gray en">/</span>
    分类列表
</nav>
{/block}
{block name="main"}
<div class="panel mt-20">
    <div class="panel-body">
        <div class="clearfix">
							<span class="f-l">
							<a class="btn btn-primary radius" onclick="category('添加分类','/{$backendPrefix}/article/category/add.html')"
                               href="javascript:void (0);"><i class="Hui-iconfont">&#xe600;</i> 添加分类
                            </a>
							</span>
            <span class="f-r">共有数据：<strong>{$count}</strong> 条</span>
        </div>
        <div class="mt-20 clearfix">
            <table id="data-table-list"
                   class="table table-border table-bordered table-bg table-hover table-sort">
                <thead>
                <tr class="text-c">
                    <th width="120">分类名</th>
                    <th width="220">标题</th>
                    <th width="80">所属分类</th>
                    <th width="220">关键词</th>
                    <th width="40">操作</th>
                    <th></th>
                </tr>
                </thead>
                <tbody class="getData-list" data-currPage='1'>
                {notempty name="data"}
                {volist name="data" id="vo"}
                <tr class="text-c">
                    <td class="text-l">{$vo.name}</td>
                    <td class="text-l">{$vo.title}</td>
                    <td>{$vo.id|getCategoryName}</td>
                    <td class="text-l">{$vo.description}</td>
                    <td class="f-14 td-manage">
                        <a style="text-decoration:none" class="ml-5 btn btn-primary"
                           onClick="category('编辑分类','/{$backendPrefix}/article/category/edit/{$vo.id}.html')" href="javascript:void (0);"
                           title="编辑分类"><i class="Hui-iconfont">&#xe6df;</i></a>
                    </td>
                    <td class="text-l"></td>
                </tr>
                {/volist}
                {else /}
                <tr><td colspan="6">{:lang('No Result')}</td></tr>
                {/notempty}
                </tbody>
            </table>
        </div>
        <div id="laypage" class="text-c"></div>
    </div>
</div>
{/block}
{block name="script"}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__LIB__/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__ADMIN__/business/js/main.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#menu-article dd").css("display","block");
        $("#menu-article #menu-category").addClass("current");
    })
</script>
{/block}